<template>
	 <zero-markdown-view :markdown="content"></zero-markdown-view>
</template>

<script setup>
import { ref } from 'vue';
import useApp from "@/hooks";
const { $ } = useApp();
const content = ref(null)
uni.request({
	url:'http://150.158.135.236:8888/down/7H36rtGrsfSc.md?fname=/test.md&down=true',
	success:res=>{
		console.log(res)
		content.value = res.data
	}
})
// $.doLogin()
// uni.chooseMessageFile({
// 	count:1,
// 	success: (res) => {
// 		console.log(res);
// 		let filePath = res.tempFiles[0].path;
// 		let fileName = res.tempFiles[0].name;
// 		uniCloud.uploadFile({
// 			filePath: filePath,
// 			cloudPathAsRealPath: true,
// 			cloudPath: "zip/" + fileName,
// 			success: (r) => {
// 				console.log(r);
// 			},
// 		});
		
// 	},
// });
</script>

<style></style>
